package com.mezz.bones.framework.core.biz.chain.demo;

import com.mezz.bones.framework.core.biz.chain.BizHandlerChain;

/**
 * @Author: zhuang
 * @Date: 2024/8/20 17:30
 * @Description: TODO
 * @Version: 1.0
 **/

public class NumberHandlerCustomer {

    public static void main(String[] args) {

        NumberContext request = new NumberContext();
        request.setNum(1);

        BizHandlerChain<NumberContext> handlerChain = BizHandlerChain.of(request);
        handlerChain.addHandler(new NumberPlusOneFilter());
        handlerChain.addHandler(new NumberPlusTwoFilter());
        handlerChain.doBizHandler();
    }
}
